﻿using RayDen.Library.Components.Color.Types;
using RayDen.Library.Core.Primitives;

namespace RayEngine.Spectral.Entities.Textures
{
    public abstract class BaseTexture<TEval> : IValueTexture
    {
        protected readonly int Id;
        protected TEval value;

        protected BaseTexture(int id, TEval val)
        {
            this.Id = id;
            this.value = val;
        }

        public int GetId()
        {
            return Id;
        }

        public abstract IColorType Evaluate(float u, float v);

        public abstract IColorType Evaluate(ShadePointInfo point);

    }
}